//
//  DHCommerHeaderView.m
//  精品酒店
//
//  Created by DIANGHONG on 2018/5/16.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "DHCommerFooterView.h"
@interface DHCommerFooterView()
@property (weak, nonatomic) IBOutlet UIButton *postButton;

@end
@implementation DHCommerFooterView

+ (instancetype)footerViewWithFrame:(CGRect)frame
{
    UINib *nib = [UINib nibWithNibName:@"DHCommerFooterView" bundle:nil];
    DHCommerFooterView *v = [nib instantiateWithOwner:nil options:nil][0];
    v.frame = frame;
    return v;
}
#pragma mark: - awakeFromNib
- (void)awakeFromNib
{
    [super awakeFromNib];
    self.postButton.layer.masksToBounds = true;
    self.postButton.layer.cornerRadius = 8;
    [self.postButton addTarget:self action:@selector(btnPostClick) forControlEvents:UIControlEventTouchUpInside];
}
#pragma mark : - 提交按钮监听
//FIXME: - 未实现
- (void)btnPostClick
{
    NSAssert(self.postButtonClick, @"self.postButtonClick 不能为nil");
    self.postButtonClick();
}
@end
